import request from '@/utils/request'

// 查询客户下发列表
export function listDataReleased(data) {
    return request({
        url: '/system/sysDataDeliveryLog/list',
        method: 'get',
        params: data
    })
}

// 新建客户下发
export function addDataReleased(data) {
    return request({
        url: '/system/sysDataDelivery/customerIssued',
        method: 'post',
        data: data
    })
}

// 新建会员下发
export function addMemberDataReleased(data) {
    return request({
        url: '/system/sysDataDelivery/issuedByMembers',
        method: 'post',
        data: data
    })
}


// 查询供应商下发列表
export function listSupplierDataReleased(data) {
    return request({
        url: '/system/sysDataDeliveryLog/supplierReleaseRecord',
        method: 'get',
        params: data
    })
}

// 新建供应商下发
export function addSupplierDataReleased(data) {
    return request({
        url: '/system/sysDataDelivery/issuedBySuppliers',
        method: 'post',
        data: data
    })
}

// 查询产品下发列表
export function listProductDataReleased(data) {
    return request({
        url: '/system/sysDataDeliveryLog/productReleaseRecord',
        method: 'get',
        params: data
    })
}

// 新建产品下发
export function addProductDataReleased(data) {
    return request({
        url: '/system/sysDataDelivery/insert',
        method: 'post',
        data: data
    })
}

// 下发详情
export function detailProductDataReleased(id) {
    return request({
        url: '/system/sysDataDeliveryLog/selectOne?id=' + id,
        method: 'get'
    })
}